//
//  Networkenable.m
//  MyShiDiQuan
//
//  Created by cvicseks-mac1 on 16/8/5.
//  Copyright © 2016年 cvicseks-mac1. All rights reserved.
//

#import "Networkenable.h"


@implementation Networkenable

+ (BOOL)isNetworkEnable
{
    [[AFNetworkReachabilityManager sharedManager] startMonitoring];
//    NSString *status = [[AFNetworkReachabilityManager sharedManager] localizedNetworkReachabilityStatusString];
//    NSInteger status = [AFNetworkReachabilityManager sharedManager].networkReachabilityStatus;
    BOOL status = [AFNetworkReachabilityManager sharedManager].isReachableViaWiFi ;
    if (status) {
        JudyLog(@"1111");
    }else{
        JudyLog(@"2222");
    }
    return YES;
}

@end
